<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class users extends CI_Controller {

	public function index()
	{
		$this->load->Helper('url');
		header('Location: ' . base_url()); exit;
	}
	
	public function logout()
	{
		$this->load->model('users/User');
		$this->User = $this->User->getLoggedInUser();
		
		if ($this->User !== false ) {
			$this->User->logOut();
		}
		
		$this->index();
		
	}

}
